<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fmt_rt" uri="http://java.sun.com/jstl/fmt_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
<%@ taglib prefix="x_rt" uri="http://java.sun.com/jstl/xml_rt"%>
<%@ taglib prefix="wr_fn" uri="http://njo.org/taglib/functions"%>
<table width="98%">
  <tr>
    <td class="left"><a name="title"><b>创建新消息</b></a></td>
  </tr>
</table>
<c:set var="actionMessages" value="${wr_fn:amessages(pageContext, '')}"/>
<c:forEach items="${actionMessages}" var="item">
    <div class="error-content">${wr_fn:message(pageContext, item.key, item.values)}</div>
</c:forEach>
<form name="f2" action="${pageContext.request.contextPath}/processor.newmessage.tiles" method="post">
<table class="forum" width="98%">
<col width="120"/>
<col width="*"/>
<tbody>
  <tr>
    <th colspan="2" align="left">Message </th>
  </tr>
  <tr>
    <td>${wr_fn:message(pageContext, 'caption.admin.messageKey', null)}:</td>
    <td><input type="text" name="messageKey" value="${param.messageKey}"/></td>
  </tr>
  <tr>
    <td>${wr_fn:message(pageContext, 'caption.admin.messageDescription', null)}:</td>
    <td><textarea name="description" rows="3" cols="60">${param.description}</textarea></td>
  </tr>
</tbody>
</table>
<br/>

<table class="forum" width="98%">
<col width="120"/>
<col width="*"/>
<tbody>
  <tr>
    <th colspan="2" align="left">Message Content</th>
  </tr>
  <tr>
    <td>缺省(.):</td>
    <td><textarea name="default" rows="2" cols="60">${param.default}</textarea></td>
  </tr>
  <tr>
    <td>中文(zh_CN):</td>
    <td><textarea name="zh_CN" rows="2" cols="60">${param.zh_CN}</textarea></td>
  </tr>
  <tr>
    <td>英文(en):</td>
    <td><textarea name="en" rows="2" cols="60">${param.en}</textarea></td>
  </tr>
  <tr>
    <td>日文(ja):</td>
    <td><textarea name="ja" rows="2" cols="60">${param.ja}</textarea></td>
  </tr>
</tbody>
</table>

<table width="98%">
  <tr>
    <td class="right"><input type="submit" name="save" value="保存"/> <input type="reset" name="reset" value="充填"/></td>
  </tr>
</table>
</form>
